package com.lvmama.client.rhino;

import com.lvmama.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("rhino-web-service")
@RequestMapping("${server.servlet.context-path}")
public interface OrderClient {

    @RequestMapping(method = RequestMethod.POST, value = "/order/orderChartData", consumes = "application/json")
    Result<Map<String, Object>> orderChartData(@RequestParam("chooseTime")String chooseTime, @RequestParam("userUseYear")String userUseYear, @RequestParam("flag")String flag);

    @RequestMapping(method = RequestMethod.POST, value = "/order/orderDataByCategory", consumes = "application/json")
    Result<Map<String, Object>> orderDataByCategory(@RequestParam("chooseTime")String chooseTime,
                                                    @RequestParam("userUseYear")String userUseYear, @RequestParam("flag")String flag, @RequestParam("categoryName")String categoryName);



}
